package com.ctshk.rpc.train.entity.es;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

@Data
public class ChannelSaleCache implements Serializable {

    @Field(type = FieldType.Nested)
    @ApiModelProperty("线上自营信息")
    private List<ProductChannelOnlineSelfPlatformCache> productChannelOnlineSelfPlatformCacheList;

    @Field(type = FieldType.Date, format = DateFormat.year_month_day)
    @ApiModelProperty("有效期开始时间")
    private LocalDate dateBegin;

    @Field(type = FieldType.Date, format = DateFormat.year_month_day)
    @ApiModelProperty("有效期结束时间")
    private LocalDate dateEnd;
}
